package com.dt76.smallloanbackenduser.remote.yaozhao;

import com.dt76.smallloanbackenduser.hystrix.yaozhao.OverDueRemoteHystrix;
import com.dt76.smallloanbackenduser.utils.Page;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "smallloan-backend-service",fallback = OverDueRemoteHystrix.class)
public interface OverDueRemote {

    @RequestMapping("/overdue/qryPageAll")
    public Page qryPageAll(@RequestParam("pageIndex") int pageIndex,
                           @RequestParam("userName") String userName,
                           @RequestParam("phoneNumber") String phoneNumber,
                           @RequestParam("loanId") String loanId,
                           @RequestParam("ContractId") String ContractId,
                           @RequestParam("riskClassification") String riskClassification);

    @RequestMapping("/overdue/qryCollectionPageAll")
    public Page qryCollectionPageAll(@RequestParam("pageIndex") int pageIndex,
                           @RequestParam("userName") String userName,
                           @RequestParam("phoneNumber") String phoneNumber,
                           @RequestParam("loanId") String loanId,
                           @RequestParam("CollectionType") String CollectionType);
}
